/*
 * queue_def.h
 *
 *  Created on: Aug 6, 2013
 *      Author: Thuan Nguyen
 */
#ifndef QUEUE_DEF_H_
#define QUEUE_DEF_H_

#include<unistd.h>
#include<stdio.h>
#include<stdlib.h>
#include<errno.h>
#include<sys/types.h>
#include<sys/ipc.h>
#include<sys/msg.h>

#include"tp_types.h"
#include"logging.h"
#define TASKLIST_MQUEUE 1234
#define INPUT_MQUEUE 2345


#define MAX_TEXT 512

struct request_msg_t{
	thread_action_tasklist_types_t action;
	U8 data[MAX_TEXT];
};


U8 tp_create_tasklist_queues_func();
U8 create_input_queues_func();

U8 tp_send_request_to_tasklist_queues_func(struct request_msg_t *req_msg);
void* tp_receive_request_from_tasklist_queues_func(struct request_msg_t *req_msg)


U8 send_request_to_input_queues_func();
U8 receive_request_to_input_queues_func();

U8 tp_monitor_tasklist_queues_func();
U8 monitor_input_queues_func();

#endif

